package com.yanqu.road.entity.activity.zhenhuan.thirdProcess;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 甄嬛三阶段花车宴会桌子
 */
@FieldTypeAnnotation(tableName = "t_c_zhenhuan_third_process_banquet_user_data", desc = "甄嬛3-入宴玩家")
public class CrossZhenHuanThirdProcessBanquetUserData extends DataObject {

    /**
     * 活动ID
     */
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;

    /**
     * 玩家ID
     */
    @FieldTypeAnnotation(select = true, update = true, desc = "玩家ID")
    private long userId;

    /**
     * 宴会ID
     */
    @FieldTypeAnnotation(select = true, update = true, desc = "宴会ID")
    private int banquetId;

    /**
     * 入宴玩家ID
     */
    @FieldTypeAnnotation(desc = "入宴玩家ID")
    private long joinUserId;

    /**
     * 入宴位置
     */
    @FieldTypeAnnotation(desc = "入宴位置")
    private int pos;

    /**
     * 时间
     */
    @FieldTypeAnnotation(desc = "时间")
    private long createTime;

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public long getUserId() {
        return userId;
    }

    public void setBanquetId(int banquetId) {
        this.banquetId = banquetId;
    }

    public int getBanquetId() {
        return banquetId;
    }

    public void setJoinUserId(Long joinUserId) {
        if (this.joinUserId != joinUserId) {
            this.joinUserId = joinUserId;
            setOp(DataStatus.Update);
        }
    }

    public long getJoinUserId() {
        return joinUserId;
    }

    public void setPos(int pos) {
        if (this.pos != pos) {
            this.pos = pos;
            setOp(DataStatus.Update);
        }
    }

    public int getPos() {
        return pos;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public long getCreateTime() {
        return createTime;
    }
}
